#Maintainer:

pkgname=perl-mp3-info
pkgver=1.26
pkgrel=6
pkgdesc="Manipulate / fetch info from MP3 audio files"
arch=('any')
url="https://metacpan.org/release/MP3-Info"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("https://search.cpan.org/CPAN/authors/id/J/JM/JMERELO/MP3-Info-${pkgver}.tar.gz")
sha512sums=('79f9f9bd9feda075cd8a0db80debdcc03092706834475fc6b6047e00dd282855509d5752fd2b61ae5901c2f74f00f18b0e6c9d733b54a84ea55b6afa0c9e5741')

build() {
  cd "${srcdir}/MP3-Info-${pkgver}"
  PERL_USE_UNSAFE_INC=1 \
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd "${srcdir}/MP3-Info-${pkgver}"
  make test
}

package() {
  cd "${srcdir}/MP3-Info-${pkgver}"
  make DESTDIR="$pkgdir" install
}
